import json from '../../static/address.json'

const debug = (process.env.NODE_ENV === 'production')
let tools = {
  baseUrl: null
}

const getBaseUrl = () => {
  if (debug) {
    tools.baseUrl = 'api'
  } else {
    tools.baseUrl = json.address
  }
}
getBaseUrl()
export default tools
